package com.yfqy.admin.domain.mapper;

import com.yfqy.admin.domain.dto.label.LabelDTO;
import com.yfqy.admin.domain.entity.Label;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LabelMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Label record);

    int insertSelective(Label record);

    Label selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Label record);

    int updateByPrimaryKey(Label record);

    int countByLabelName(@Param("labelName") String labelName, @Param("id") Long id);

    List<LabelDTO> selectAll(@Param("labelName") String labelName, @Param("status") Integer status);

    String getLabelNameById(@Param("id") Long id);

    List<Label> selectByIds(@Param("ids") List<Long> labelIds);
}